package com.relytosoft.mizar.media.alarm.api.pojo.dto;

import com.relytosoft.dubhe.common.core.utils.BeanCopyUtils;
import com.relytosoft.mizar.media.alarm.api.entity.Alarm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wss
 * @version 1.0
 * @date 2022/6/20 16:46
 */
@ApiModel("报警信息保存dto")
public class AlarmSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警类型id")
    private Integer alarmTypeId;

    @ApiModelProperty(value = "设备id")
    private String cameraId;

    @ApiModelProperty(value = "任务id")
    private String taskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "报警图片")
    private String alarmImg;

    @ApiModelProperty(value = "报警video")
    private String alarmVideo;

    @ApiModelProperty(value = "报警时间")
    private LocalDateTime alarmTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "报警数据")
    private String alarmData;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static AlarmSaveDto buildDto(Alarm alarm) {
        AlarmSaveDto alarmSaveDto = new AlarmSaveDto();
        BeanCopyUtils.copy(alarm, alarmSaveDto);
        return alarmSaveDto;
    }

    public Integer getAlarmTypeId() {
        return alarmTypeId;
    }

    public void setAlarmTypeId(Integer alarmTypeId) {
        this.alarmTypeId = alarmTypeId;
    }

    public String getCameraId() {
        return cameraId;
    }

    public void setCameraId(String cameraId) {
        this.cameraId = cameraId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getAlarmImg() {
        return alarmImg;
    }

    public void setAlarmImg(String alarmImg) {
        this.alarmImg = alarmImg;
    }

    public String getAlarmVideo() {
        return alarmVideo;
    }

    public void setAlarmVideo(String alarmVideo) {
        this.alarmVideo = alarmVideo;
    }

    public LocalDateTime getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(LocalDateTime alarmTime) {
        this.alarmTime = alarmTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAlarmData() {
        return alarmData;
    }

    public void setAlarmData(String alarmData) {
        this.alarmData = alarmData;
    }

    @Override
    public String toString() {
        return "AlarmSaveDto{" +
                "alarmTypeId=" + alarmTypeId +
                ", cameraId='" + cameraId + '\'' +
                ", taskId='" + taskId + '\'' +
                ", taskName='" + taskName + '\'' +
                ", alarmImg='" + alarmImg + '\'' +
                ", alarmVideo='" + alarmVideo + '\'' +
                ", alarmTime=" + alarmTime +
                ", remark='" + remark + '\'' +
                ", alarmData='" + alarmData + '\'' +
                '}';
    }
}
